<?php
/**
 * This file is loaded automatically by the app/webroot/index.php file after the core bootstrap.php
 *
 * This is an application wide file to load any function that is not used within a class
 * define. You can also use this to include or require any files in your application.
 *
 * PHP versions 4 and 5
 *
 * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
 * Copyright 2005-2010, Cake Software Foundation, Inc. (http://cakefoundation.org)
 *
 * Licensed under The MIT License
 * Redistributions of files must retain the above copyright notice.
 *
 * @copyright     Copyright 2005-2010, Cake Software Foundation, Inc. (http://cakefoundation.org)
 * @link          http://cakephp.org CakePHP(tm) Project
 * @package       cake
 * @subpackage    cake.app.config
 * @since         CakePHP(tm) v 0.10.8.2117
 * @license       MIT License (http://www.opensource.org/licenses/mit-license.php)
 */

/**
 * The settings below can be used to set additional paths to models, views and controllers.
 * This is related to Ticket #470 (https://trac.cakephp.org/ticket/470)
 *
 * App::build(array(
 *     'plugins' => array('/full/path/to/plugins/', '/next/full/path/to/plugins/'),
 *     'models' =>  array('/full/path/to/models/', '/next/full/path/to/models/'),
 *     'views' => array('/full/path/to/views/', '/next/full/path/to/views/'),
 *     'controllers' => array('/full/path/to/controllers/', '/next/full/path/to/controllers/'),
 *     'datasources' => array('/full/path/to/datasources/', '/next/full/path/to/datasources/'),
 *     'behaviors' => array('/full/path/to/behaviors/', '/next/full/path/to/behaviors/'),
 *     'components' => array('/full/path/to/components/', '/next/full/path/to/components/'),
 *     'helpers' => array('/full/path/to/helpers/', '/next/full/path/to/helpers/'),
 *     'vendors' => array('/full/path/to/vendors/', '/next/full/path/to/vendors/'),
 *     'shells' => array('/full/path/to/shells/', '/next/full/path/to/shells/'),
 *     'locales' => array('/full/path/to/locale/', '/next/full/path/to/locale/')
 * ));
 *
 */

/**
 * As of 1.3, additional rules for the inflector are added below
 *
 * Inflector::rules('singular', array('rules' => array(), 'irregular' => array(), 'uninflected' => array()));
 * Inflector::rules('plural', array('rules' => array(), 'irregular' => array(), 'uninflected' => array()));
 *
 */

define('SITE_NAME','「もしもドロップシッピング」の商品管理に！ － DSAM －');
define('PUBLIC_SITE_URL','http://dsam.matrix.jp/');
define('PUBLIC_SITE_EMAL','info.dsam@dsam.matrix.jp');

//ユーザのステータス
define('PUBLIC_USER_STATUS_INVALID', 0);
define('PUBLIC_USER_STATUS_VALID',   1);
Configure::write('Users.status', array(
	PUBLIC_USER_STATUS_INVALID => '無効', 
	PUBLIC_USER_STATUS_VALID   => '有効', 
));

//ユーザの登録ステータス
define('PUBLIC_REGIST_STATUS_PREREGIST', 0);
define('PUBLIC_REGIST_STATUS_REGIST', 1);
define('PUBLIC_REGIST_STATUS_REMOVE', 2);
Configure::write('Users.registstatus', array(
	PUBLIC_REGIST_STATUS_PREREGIST => '仮登録', 
	PUBLIC_REGIST_STATUS_REGIST    => '本登録', 
	PUBLIC_REGIST_STATUS_REMOVE    => '解除', 
));

//ユーザグループ
define('USER_GROUP_STANDARD', 1);
define('USER_GROUP_MANAGER',  2);
Configure::write('Users.group.type', array(
	USER_GROUP_STANDARD => '一般グループ', 
	USER_GROUP_MANAGER  => '管理グループ', 
));

//支払い種別
define('PAY_MONTHLY', 1);
define('PAY_YEAR',  2);
Configure::write('Users.pay.type', array(
	PAY_MONTHLY => '月払', 
	PAY_YEAR  => '年払', 
));

define('COOKIE_EXPIRE', 60*60*24*30);   // 30日有効

define('MOSIMO_DEFAULT_API_CODE', 'VQfOPQA4QnTm1KrHXqFsq6oMvVzZV');   // もしもAPIコード

define('PAYPAL_DEFAULT_URL', 'http://www.sandbox.paypal.com/');   // PayPalURL
